package oc.tm.sg.core.conf;

import org.aeonbits.owner.Config;
import org.aeonbits.owner.Config.Sources;

@Sources("classpath:govern.properties")
public interface GovernConf extends Config {
	
	@Key("govern.application")
	String application();
	
	@Key("govern.service.scan")
	String scan();
	
	@Key("govern.registry.url")
	String registryURL();
	
	@Key("govern.monitor.switch")
	@DefaultValue("false")
	boolean monitorSwitch();
	
	//监控处理队列大小
	@Key("govern.monitor.maxQueue")
	@DefaultValue("10000")
	int monitorMaxQueue();
	
	//失败延迟重试时间,单位ms
	@Key("govern.monitor.failRetry")
	@DefaultValue("5000")
	long monitorFailRetry();
	
}
